Skip to content

C gen: implement named value types#281

Closed
osa1 wants to merge 5 commits intomainfrom
value_types
Closed

C gen: implement named value types#281
osa1 wants to merge 5 commits intomainfrom
value_types

Conversation

@osa1
Copy link
Member

@osa1 osa1 commented Feb 6, 2026

This makes records value types and implements user-defined value types.

Standard library types Char, Str, StrBuf, and Option are made values.


TODO: Implement sum types and actually make Option a value type.

TODO: Add a test for value sums with values (e.g. result, option)

TODO: Now that variant pattern matching is handled specially with f824cdb we should remove the tag words in product types. This can be done separately, maybe do it in a separate PR, merge before this one.

@osa1
Copy link
Member Author

osa1 commented Feb 7, 2026

Rebased & merged as 35de96d.

@osa1 osa1 closed this Feb 7, 2026
@osa1 osa1 deleted the value_types branch February 7, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant